Overview of the Bicycle Parts Catalog Interface
The application you will build in this tutorial reads information about bicycle parts from a database and displays it. Here’s what the Macromedia Flash interface will look like:
Figure 1. The Macromedia Flash front-end interface.
The user will be able to click different parts in the
ListBox and see the part details displayed in the Part Info section.
When the user clicks Add
New Record in the ListBox, the text display fields change into an input form, as follows:
Figure 2. The Add New Record input form.
The TextBox for the part type turns into a ComboBox (or pop-up menu), and the submit button appears. The user can then specify descriptive data for the new part, click Add New Part, and then receive a confirmation that the app wrote the data into the database for a particular part ID number, as shown here:
Figure 3. The interface confirms that it the app wrote the data into the database for a particular Part ID number.
The app interacts with the database when:
- The app reads the part names and details used in the display portion of the application from the database.
- The app retrieves part types used in the ComboBox in the input form.
- The app inserts user data into the database, and generates the product ID that appears in the Macromedia Flash interface.
In this tutorial, you will learn to write ActionScript that allows a Macromedia Flash movie and database interact. You will also examine the ColdFusion code that the app uses to connect to the database. The ColdFusion code is within a ColdFusion component (CFC).
Submit feedback on our tutorials, articles, and sample applications.